package com.obas.menus {
	import com.ease.core.components.menus.AbstractMenuProvider;
	import com.obas.constants.StringConstants;
	import com.obas.utils.ResourceUtil;

	import mx.events.MenuEvent;

	public class SourceMenuProvider extends AbstractMenuProvider {
		override public function appendMenuItem(root:Object):void {

			var menuItems:Object={label: ResourceUtil.getString(StringConstants.MAIN_MENU_SOURCE), //
					children: [ //
					{label: "Shift Right", icon: "documentIconClass", listener: onMenuItemClick}, //
						{label: "Shift Left", icon: "documentIconClass", listener: onMenuItemClick}, //
						{type: "separator"}, //
						{label: "Toggle Comment", listener: onMenuItemClick}, //
						{label: "Toggle Block Comment", listener: onMenuItemClick}, //
						{label: "Add ASDoc Comment", listener: onMenuItemClick}, //
						{type: "separator"}, //
						{label: "Organize Imports", listener: onMenuItemClick}, //
						{type: "separator"}, //
						{label: "Refactor", //
							children: [ //
							{label: "Rename", listener: onMenuItemClick} //
							] //
						} //
					] //
				};

			root.children.push(menuItems);
		}
	}
}